home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.2 Development Libraries
/
SGI IRIX 6.2 Development Libraries.iso
/
dist
/
complib.idb
/
usr
/
share
/
catman
/
p_man
/
cat3
/
complib
/
fft2dui.z
/
fft2dui
Wrap
Text File
|
1996-03-14
|
5KB
|
133 lines
ssssccccfffffffftttt2222dddduuuuiiii,,,,ddddzzzzfffffffftttt2222dddduuuuiiii((((3333FFFF)))) ssssccccfffffffftttt2222dddduuuuiiii,,,,ddddzzzzfffffffftttt2222dddduuuuiiii((((3333FFFF))))
NNNNAAAAMMMMEEEE
ssssccccfffffffftttt2222dddduuuuiiii,,,, ddddzzzzfffffffftttt2222dddduuuuiiii ---- initialize the coefficient array for real-to-
complex 2D FFT modules.
SSSSYYYYNNNNOOOOPPPPSSSSYYYYSSSS
_F_O_R_T_R_A_N _S_P_E_C_I_F_I_C_A_T_I_O_N
ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee SSSSCCCCFFFFFFFFTTTT2222DDDDUUUUIIII(((( nnnn1111,,,, nnnn2222,,,, ccccooooeeeeffffffff ))))
iiiinnnntttteeeeggggeeeerrrr nnnn1111,,,, nnnn2222
rrrreeeeaaaallll ccccooooeeeeffffffff((((((((nnnn1111++++11115555)))) ++++ 2222****((((nnnn2222++++11115555))))))))
ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee DDDDZZZZFFFFFFFFTTTT2222DDDDUUUUIIII(((( nnnn1111,,,, nnnn2222,,,, ccccooooeeeeffffffff ))))
iiiinnnntttteeeeggggeeeerrrr nnnn1111,,,, nnnn2222
rrrreeeeaaaallll****8888 ccccooooeeeeffffffff((((((((nnnn1111++++11115555)))) ++++ 2222****((((nnnn2222++++11115555))))))))
_C _S_P_E_C_I_F_I_C_A_T_I_O_N
####iiiinnnncccclllluuuuddddeeee <<<<fffffffftttt....hhhh>>>>
ffffllllooooaaaatttt ****ssssccccfffffffftttt2222dddduuuuiiii(((( iiiinnnntttt nnnn1111,,,, iiiinnnntttt nnnn2222,,,, ffffllllooooaaaatttt ****ccccooooeeeeffffffff))));;;;
ddddoooouuuubbbblllleeee ****ddddzzzzfffffffftttt2222dddduuuuiiii(((( iiiinnnntttt nnnn1111,,,, iiiinnnntttt nnnn2222,,,, ddddoooouuuubbbblllleeee ****ccccooooeeeeffffffff))));;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Initialize, the coefficient array which is used in the 2D FFT modules.
This array contains the different twiddle factors and the factorization
of N1 and N2 into prime numbers.
As the FFT modules scfft2d or dzfft2d only read the _c_o_e_f_f array, it may
be reused as many times as necessary once it has been initialized.
In C, if _p_t_r is NULL, _s_c_f_f_t_2_d_u_i or _d_z_f_f_t_2_d_u_i returns a pointer to an
allocated buffer.
SCFFT2DUI should be used to initialize the coefficient array before any
call to SCFFT2DU
DZFFT2DUI should be used to initialize the coefficient array before any
call to DZFFT2DU
PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
NNNN ---- Integer. Specifies the length of the sequence to be transformed.
Unchanged on exit.
CCCCOOOOEEEEFFFFFFFF ---- Array (C or Fortran) or NULL pointer(C).
EEEExxxxaaaammmmpppplllleeee ooooffff CCCCaaaalllllllliiiinnnngggg SSSSeeeeqqqquuuueeeennnncccceeee
Initializing a coefficient array for real-to-complex FFTs of size 200 x
300.
_F_o_r_t_r_a_n :
complex coeff((200+15)+2*(300+15))
call scfft2dui( 200, 300, coeff)
PPPPaaaaggggeeee 1111
ssssccccfffffffftttt2222dddduuuuiiii,,,,ddddzzzzfffffffftttt2222dddduuuuiiii((((3333FFFF)))) ssssccccfffffffftttt2222dddduuuuiiii,,,,ddddzzzzfffffffftttt2222dddduuuuiiii((((3333FFFF))))
_C :
#include <fft.h>
float *coeff;
coeff = scfft2dui( 200, 300, NULL);
SSSSEEEEEEEE AAAALLLLSSSSOOOO
fft, scfft2du, dzfft2du
PPPPaaaaggggeeee 2222